﻿using System;
using Autodesk.Revit.DB;
using YArchitech.Revit;

namespace FetchDataCompare
{
	internal class GeoFloorStruct : GeoObjectStructBase, IGeoObjectStruct
	{
		public GeoFloorStruct(Element element, View view) : base(element, view)
		{
			base.Attribute = this.GetElementAttribute();
		}

		public GeoFloorStruct()
		{
		}

		public override string GetElementAttribute()
		{
			string elementAttribute = base.GetElementAttribute();
			this.GetExtendAttribute(ref elementAttribute);
			return elementAttribute;
		}

		public void GetExtendAttribute(ref string attr)
		{
			Floor floor = base.UseElement as Floor;
			if (floor == null)
			{
				base.Attribute = (base.Attribute ?? "");
				return;
			}
			string str = floor.GetParameter(BuiltInParameter.WALL_ATTR_WIDTH_PARAM).AsDouble().ToString("f2");
			attr = attr + str + ";";
		}
	}
}
